feat(associations): MEDIC/CTD drug-indication section + enriched details modal (#1348) - #1352
feat(associations): MEDIC/CTD drug-indication section + enriched details modal (#1348)#1352kevinschaper wants to merge 2 commits into
Conversation
Complete and un-hide the ChemicalOrDrugOrTreatmentToDiseaseOrPhenotypicFeature association mapping (formerly the hidden "Medical Action" entry) so MEDIC chemical->disease/phenotype "treats" edges render as a section: subject ChemicalEntity, directional labels "Indications" (drug page) / "Treatments" (disease/phenotype page). Update fixtures to the new label. Phase 1 of #1348; CTD merge + predicate filter to follow. Claude-Session: https://claude.ai/code/session_018c9UddtKsKtm35YNrxHWuL
…1348) Enrich the association details modal (SectionAssociationDetails.vue) to surface the fields it previously hid: knowledge level, the nested retrieval-source provenance chain (e.g. MEDIC's infores:medic <- infores:dailymed/FDA), aggregator knowledge source, original predicate, qualifiers, frequency data, FDA adverse event level, and negated. Extract the sources JSON parsing into a tested util (parseRetrievalSources). Claude-Session: https://claude.ai/code/session_018c9UddtKsKtm35YNrxHWuL
✅ Deploy Preview for monarch-app ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1352 +/- ##
=======================================
Coverage 83.17% 83.17%
=======================================
Files 126 126
Lines 6617 6617
=======================================
Hits 5504 5504
Misses 1113 1113 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Review: MEDIC/CTD drug-indication section + enriched details modal (#1348)Nice, focused PR — un-hiding the Overview
Code quality / style
Potential issues
Performance Security Test coverage
Overall this looks solid and low-risk to merge once visually verified against the new backend. The |
Draft — implements #1348 (simplified scope).
What this does
biolink:ChemicalOrDrugOrTreatmentToDiseaseOrPhenotypicFeatureAssociationmapping (formerly the hidden "Medical Action" entry): subjectChemicalEntity, directional labels "Indications" (drug page) / "Treatments" (disease/phenotype page). MEDIC'streatsedges now render as a section on Chemical/Disease/Phenotype pages.SectionAssociationDetails.vue) to show all remaining non-transient fields: knowledge level, the nested retrieval-source provenance chain (MEDIC'sinfores:medic ← infores:dailymed/FDA "approving agency" nesting), aggregator knowledge source, original predicate, qualifiers, frequency data, FDA adverse event level, and negated.Scope decisions
make modelrequired.Verification
'Medical Action'→'Treatments').parseRetrievalSourcesunit-tested (nested chain, empty, malformed);vue-tscclean; prettier/eslint clean.https://claude.ai/code/session_018c9UddtKsKtm35YNrxHWuL